Power distribution unit and alarm method applied in the same

ABSTRACT

An apparatus including a base, a socket, a first switch, a second switch, and an AND gate is provided. The socket is disposed at the base and the socket is configured to receive a plug. The socket has a power end in communication with the first switch and a ground end in communication with the second switch. When a plug is disposed at the socket, the AND gate outputs an alarm signal responsive to the first switch being short when the plug is electrically connected to the power end of the socket and the second switch being open when the plug is electrically disconnected from the ground end of the socket.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation patent application of U.S. patentapplication Ser. No. 14/929,513, filed Nov. 2, 2015, titled “PowerDistribution Unit and Alarm Method Applied in the Same”, now pending,which is hereby incorporated by reference, and which is a continuationpatent application of U.S. patent application Ser. No. 14/746,983, filedJun. 23, 2015, titled “Power Distribution Unit And Alarm Method AppliedIn The Same”, now U.S. Pat. No. 9,625,511, which is hereby incorporatedby reference, and which claims the benefit of priority from TaiwanPatent Application 103122054 filed on Jun. 24, 2014, which isincorporated herein by reference and assigned to the assignee herein.

BACKGROUND

The present embodiments relates to a power distribution unit and inparticular, to an alarm method applied in the power distribution unit.

DESCRIPTION OF THE PRIOR ART

For the existing power distribution unit (also called PDU), please referto IBM's power distribution unit products, such as PDU+.

In general, a power distribution unit is provided with an external cableto be electrically connected to a fixed power, e.g. a voltage source of110 V or 220 V. In addition, the power distribution unit is usuallyprovided with a plurality of sockets such that plugs of variouselectronic devices can be inserted in the sockets and the requiredelectricity power can be provided to each of the electronic devices.

However, in some cases, the plug of an electronic device is not providedwith a ground end, or the ground end is often deliberately removed by auser. Therefore, if a plug of an electronic device which does not have aground end is used to be inserted into a socket of a power distributionunit, when encountering a high voltage injection due to lightning,voltage surges or unintentional voltage contact, the electronic devicecannot be protected by means of the overvoltage protection such thatsparks can easily occur as the plug is inserted in or removed from thesocket. Furthermore, in case of voltage instability, the electronicdevice is likely to be damaged due to voltage surges, and results in anelectric shock to a user due to electrical leakage.

SUMMARY

The present embodiments include a power distribution unit, a method, andan associated computer program product for applying an alarm to thepower distribution unit.

In one aspect, a system for applying an alarm signal responsive toelectrical communication between a plug and a socket is provided. Thesocket is disposed at a base and configured to receive the plug. Thesocket has a power end and a ground end. A first switch is positionedproximal to the power end and a second switch is positioned proximal tothe ground end. The first switch has a first end and a second end.Similarly, the second switch has a third end and a fourth end. The firstend of the first switch is electrically connected to a second input endof an inverter. A first output end of the inverter is electricallyconnected to a first input end of an AND gate. The third end of thesecond switch is electrically connected to a second input end of the ANDgate. The first end of the first switch, the third input end of theinverter, the third end of the second switch, and the second input endof the AND gate are electrically connected to a preset power. The secondend of the first switch and fourth end of the second switch aregrounded. A second output end of the AND gate is configured to output analarm signal responsive to the first switch being short when the plug iselectrically connected to the power end and the second switch being openwhen the plug is electrically disconnected from the ground end.

In another aspect, a computer program product comprising a computerreadable storage device having program code embodied therewith foremploying an alarm signal responsive to electrical communication betweena plug and a socket is provided. More specifically, program codeconfigures the socket to receive the plug and the socket is disposed ata base. The socket has a power end and a ground end. Program codeconfigures a first switch positioned proximal to the power end andprogram code configures a second switch positioned proximal to theground end. More specifically, the first switch has a first end and asecond end. Similarly, the second switch has a third end and a fourthend. The first end of the first switch is electrically connected to asecond input end of an inverter. A first output end of the inverter iselectrically connected to a first input end of an AND gate. The thirdend of the second switch is electrically connected to a second input endof the AND gate. The first end of the first switch, the third input endof the inverter, the third end of the second switch, and the secondinput end of the AND gate are electrically connected to a preset power.The second end of the first switch and fourth end of the second switchare grounded. Program code outputs an alarm signal from a second outputend of the AND gate responsive to the first switch being short when theplug is electrically connected to the power end and the second switchbeing open when the plug is electrically disconnected from the groundend.

In a further aspect, a method is provided for applying an alarm signalresponsive to electrical communication between a plug and a socket. Morespecifically, the socket is configured to receive the plug and thesocket is disposed at a base. The socket has a power end and a groundend. A first switch is configured and positioned proximal to the powerend. Similarly, a second switch is configured and positioned proximal tothe ground end. More specifically, the first switch has a first end anda second end. Similarly, the second switch has a third end and a fourthend. The first end of the first switch is electrically connected to asecond input end of an inverter. A first output end of the inverter iselectrically connected to a first input end of an AND gate. The thirdend of the second switch is electrically connected to a second input endof the AND gate. The first end of the first switch, the third input endof the inverter, the third end of the second switch, and the secondinput end of the AND gate are electrically connected to a preset power.The second end of the first switch and fourth end of the second switchare grounded. An alarm signal is output from a second output end of theAND gate responsive to the first switch being short when the plug iselectrically connected to the power end and the second switch being openwhen the plug is electrically disconnected from the ground end.

These and other features and advantages will become apparent from thefollowing detailed description of the presently preferred embodiment(s),taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

In order that the advantages of the embodiments will be readilyunderstood, a more particular description of the embodiments brieflydescribed above will be rendered by reference to specific embodimentsthat are illustrated in the appended drawings. Understanding that thesedrawings depict only typical embodiments and are not therefore to beconsidered to be limiting of its scope, the embodiments will bedescribed and explained with additional specificity and detail throughthe use of the accompanying drawings.

FIG. 1 depicts a schematic diagram of a power distribution unitaccording to an embodiment.

FIG. 2 depicts a schematic diagram showing the sockets of the powerdistribution unit where the plugs are inserted according to anembodiment.

FIG. 3 depicts a flowchart illustrating the alarm method applied in thepower distribution unit according to an embodiment.

DETAILED DESCRIPTION

Hereinafter, the present embodiments will be described in more detailwith reference to the accompanying drawings. Nevertheless, it should beunderstood that the present embodiments could be modified by thoseskilled in the art in accordance with the following description toachieve the excellent results of the present embodiments. Therefore, thefollowing description shall be considered as a pervasive and explanatorydisclosure related to the present embodiments for those skilled in theart, not intended to limit the claims of the present embodiments.

Citation of “a specific embodiment” or a similar expression in thespecification means that specific features, structures, orcharacteristics described in the specific embodiment are included in atleast one specific embodiment of the present embodiments. Hence, thewording “in a specific embodiment” or a similar expression in thisspecification does not necessarily refer to the same specificembodiment.

Reference throughout this specification to features, advantages, orsimilar language does not imply that all of the features and advantagesthat may be realized with the present embodiments should be or are inany single embodiment of the embodiments. Rather, language referring tothe features and advantages is understood to mean that a specificfeature, advantage, or characteristic described in connection with anembodiment is included in at least one embodiment of the presentembodiments. Thus, discussion of the features and advantages, andsimilar language, throughout this specification may, but do notnecessarily, refer to the same embodiment.

Furthermore, the described features, advantages, and characteristics ofthe embodiments may be combined in any suitable manner in one or moreembodiments. One skilled in the relevant art will recognize that theembodiments may be practiced without one or more of the specificfeatures or advantages of a particular embodiment. In other instances,additional features and advantages may be recognized in certainembodiments that may not be present in all embodiments.

The following description and the appended claims further illustrate thefeatures and advantages of the present embodiments.

[Structure of the Power Distribution Unit]

Referring to FIG. 1, a schematic diagram of a power distribution unit(200) is provided according to an embodiment. The power distributionunit (200) includes a base (210), at least a socket (220) (a pluralityof sockets (220) are shown in FIG. 1), at least one detecting unit (230)(a plurality of detecting units (230) are shown in FIG. 1), an OR gate(240), a management unit (250) and an external cable (not shown). Eachof the sockets (220) is disposed at the base (210) and includes at leastone power end (222) (two power ends (222) are usually included but onlyone is schematically illustrated in FIG. 1) and a ground end (224).

In an embodiment, the power end (222) of each of the sockets (220) mayinclude a power jack (222 a) and a power elastic piece (222 b) locatednear the power jack (222 a). The ground end (224) of each of the sockets(220) may include a ground jack (224 a) and a ground elastic piece (224b) located near the ground jack (224 a). In addition, a plug (20) of anexternal electronic device (e.g. a server such as IBM's System X, BladeCenter or eServer, but not shown) is adapted to be disposed at one ofthe sockets (220). The plug (20) of the external electronic device mayinclude at least one power end (22) (two power ends (22) are usuallyincluded but only one is schematically illustrated in FIG. 1) and aground end (24). In an embodiment, the power end (22) and the ground end(24) of the plug (20) may be pins, respectively.

The detecting units (230) are disposed at the base (210) andrespectively correspond to the sockets (220). In the present embodiment,each of the detecting units (230) includes an inverter (232), an ANDgate (234), a first switch (236) and a second switch (238). In each ofthe detecting units (230), the inverter (232) includes an input end (232a) and an output end (232 b). The AND gate (234) includes two input ends(234 a) and an output end (234 b). The first switch (236) includes afirst end (236 a), a second end (236 b) and an insulating elastomer (236c), and the second switch (238) includes a first end (238 a), a secondend (238 b) and an insulating elastomer (238 c). When the powerdistribution unit (200) is in the initial state, that is, all sockets(220) are not inserted with any plugs, both the first switch (236) andthe second switch (238) are open.

In each of the detecting units (230), one of the input ends (234 a) ofthe AND gate (234) is electrically connected to the output end (232 b)of the inverter (232), and the first end (236 a) of the first switch(236) is electrically connected to the input end (232 a) of the inverter(232). In each of the detecting units (230), the first end (236 a) ofthe first switch (236) and the input end (232 a) of the inverter (232)are together electrically connected to a preset power V1, and the secondend (236 b) of the first switch (236) is grounded. The first switch(236) of each of the detecting units (230) corresponds to the power end(222) of one of the sockets (220).

In each of the detecting units (230), the first end (238 a) of thesecond switch (238) is electrically connected to another of the inputends (234 a) of the AND gate (234). In each of the detecting units(230), the first end (238 a) of the second switch (238) and the otherinput end (234 a) of the AND gate (234) are together electricallyconnected to a preset power V1, and the second end (238 b) of the secondswitch (238) is grounded. The second switch (238) of each of thedetecting units (230) corresponds to the ground end (224) of one of thesockets (220).

The output end (234 b) of the AND gate (234) of each of the detectingunits (230) is electrically connected to one of a plurality of inputends (242) of the OR gate (240). An output end (244) of the OR gate(240) is electrically connected to the management unit (250). Themanagement unit (250) is used for determining whether to perform apredetermined operation according to a signal transmitted from theoutput end (244) of the OR gate (240). The predetermined operation is,for example, to generate a visual alarm message (e.g. to turn on analarm light) or an auditory alarm sound (e.g. to issue an alarm noise).The details will be described hereinafter.

In other embodiments, the number of the sockets (220) and that of thedetecting units (230) may vary. When the number of the socket (220) andthat of the detecting unit (230) is one, respectively, the OR gate (240)can be omitted and the output end (234 b) of the AND gate (234) of thedetecting unit (230) can be electrically connected to the managementunit (250) directly.

[Operation of the Power Distribution Unit]

The operation of the power distribution unit (200) will be describedhereinafter. Please refer to FIG. 1. When the power distribution unit(200) is in the initial state (i.e. no plug is inserted into any of thesockets (220)), the output ends (234 b) of the AND gates (234) of allthe detecting units (230) respectively output first signals (e.g. a lowvoltage signal), and the management unit (250) does not generate avisual alarm message (or an auditory alarm sound) according to a signaltransmitted from the output end (244) of the OR gate (240). In oneembodiment, the aspect of not generating an alarm message is alsoreferred to as deterring the generation of the alarm message.

Referring to FIG. 2, which is a schematic diagram showing the sockets ofthe power distribution unit where the plugs are inserted according to anembodiment. As shown in FIG. 2, the plugs (20) and (20′) arerespectively inserted into the sockets (220) of the power distributionunit (200). The power end (22) and the ground end (24) of the plug (20)are respectively electrically connected to the power end (222) and theground end (224) of the corresponding socket (220) such that both thefirst switch (236) and second switch (238) of the correspondingdetecting unit (230) are short. Accordingly, the output end (234 b) ofthe AND gate (234) of the corresponding detecting unit (230) outputs afirst signal (e.g. a low voltage signal).

It should be noted here that, in the present embodiment, when the powerend (220 and the ground end (24) of the plug (20) are respectivelyinserted into the power jack (222 a) and ground jack (224 a) of thecorresponding socket (220), the power end (22) and the ground end (24)of the plug (20) respectively press and are electrically connected tothe corresponding power elastic piece (222 b) and the correspondingground elastic piece (224 b). At this time, the corresponding powerelastic piece (222 b) and the corresponding ground elastic piece (224 b)are electrically connected to a power line and a ground line of anexternal cable (not shown) respectively, and press the insulatingelastomer (236 c) of the corresponding first switch (236) and theinsulating elastomer (238 c) of the corresponding second switch (238),respectively such that the two ends (236 a) and (236 b) of thecorresponding first switch (236) (see FIG. 1) are electricallyconductive and the two ends (238 a) and (238 b) of the correspondingsecond switch (238) (see FIG. 1) are electrically conductive.

Referring to FIG. 2 again. The power end (22′) of the plug (20′) iselectrically connected to the power end (222) of the correspondingsocket (220) such that the corresponding first switch (236) is short.However, the plug (20′) is not electrically connected to the ground end(224) of the corresponding socket (220) such that the correspondingsecond switch (238) is still open. Accordingly, the output end (234 b)of the AND gate (234) of the corresponding detecting unit (230) outputsa second signal (that is, an alarm signal, e.g. a high voltage signal).

Based on the above mentioned, since one of the detecting units (230)corresponding to the sockets (220) outputs the alarm signal to the ORgate (240) and the output end (244) of the OR gate (240) then transmitsthe alarm signal to the management unit (250), the management unit (250)performs a predetermined operation in response to the alarm signal. Thepredetermined operation is, for example, to generate a visual alarmmessage (e.g. to turn on an alarm light) or an auditory alarm sound(e.g. to issue an alarm noise) to alert the user.

Based on the aforementioned, in the case that a plug is inserted intothe power distribution unit (200) in the present embodiment, as long asthe power end (222) of the corresponding socket (220) is electricallyconnected to the plug but the ground end (224) of the correspondingsocket (220) is not electrically connected to the plug, the managementunit (250) of the power distribution unit (200) generates a visual alarmmessage (e.g. turns on an alarm light) or an auditory alarm sound (e.g.issues an alarm noise) to alert the user. In addition, in the case thatin the present embodiment no plug is inserted into the powerdistribution unit (200) or the inserted plug is electrically connectedto both the power end (222) and the ground end (224) of thecorresponding socket (220), the management unit (250) does not generatethe aforementioned alarm message or alarm sound.

[An Alarm Method Applied in the Power Distribution Unit]

An alarm method applied in the power distribution unit (200) isdescribed hereinafter. FIG. 3 is a flowchart (300) illustrating thealarm method applied in the power distribution unit according to anembodiment. Please refer to FIG. 1 to FIG. 3. The alarm method appliedin the power distribution unit according to an embodiment of the presentembodiments includes the following steps. First, Step (302) isperformed. The electrical connection between a plug and the power end(222) of the corresponding socket (220) of the power distribution unit(200) is determined. Then, if the plug is electrically connected to thepower end (222) of the corresponding socket (220), Step (304) isperformed, i.e. the electrical connection between the plug and theground end (224) of the corresponding socket (220) is determined. Next,if the plug is not electrically connected to the ground end (224) of thecorresponding socket (220), Step (306) is performed, i.e. thecorresponding detecting unit (230) generates an alarm signal, followedby Step (308) wherein the management unit (250) performs a predeterminedoperation in response to the alarm signal. The predetermined operationis, for example, to generate a visual alarm signal (e.g. to turn on analarm light) or an auditory alarm sound (e.g. to issue an alarm noise)to alert the user. If at step (304), it is determined that the plug iselectrically connected to a ground end of the socket, the detecting unitdoes not generate any alarming signal(s) (310).

In the present embodiment, if the plug is not electrically connected tothe power end (222) of any socket (220) (e.g. the power distributionunit 200 is in the initial state as shown in FIG. 1), all the detectingunits (230) do not generate any alarm signals. If the plug iselectrically connected to the ground end (224) of the correspondingsocket (220), the corresponding detecting unit (230) does not generatean alarm signal.

The present embodiment(s) has one of the following advantages or anotheradvantage. In the case that a plug is inserted into the powerdistribution unit in an embodiment of the present embodiments, as longas the power end of the corresponding socket is electrically connectedto the plug but the ground end of the corresponding socket is notelectrically connected to the plug, the corresponding detecting unitoutputs an alarm signal. In response to the alarm signal, the managementunit of the power distribution unit generates a visual alarm message oran auditory alarm sound to alert the user.

In addition, in the case that in an embodiment no plug is inserted intothe power distribution unit or the inserted plug is electricallyconnected to both the power end and the ground end of the correspondingsocket, all the detecting units do not output any alarm signals. Themanagement unit does not generate any alarm message or alarm sound.

As will be appreciated by one skilled in the art, the presentembodiments may be embodied as a computer system, a method or a computerprogram product. Accordingly, the present embodiments may take the formof an entirely hardware embodiment, an entirely software embodiment(including firmware, resident software, micro-code, etc.) or anembodiment combining software and hardware aspects that may allgenerally be referred to herein as a “circuit,” “module” or “system.”Furthermore, the present embodiments may take the form of a computerprogram product embodied in any tangible medium of expression havingcomputer-usable program code embodied in the medium.

Any combination of one or more computer usable or computer readablemedium(s) may be utilized. The computer-usable or computer-readablemedium may be, for example but not limited to, an electronic, magnetic,optical, electromagnetic, infrared, or semiconductor system, apparatus,device, or propagation medium. More specific examples (a non-exhaustivelist) of the computer-readable medium would include the following: anelectrical connection having one or more wires, a portable computerdiskette, a hard disk, a random access memory (RAM), a read-only memory(ROM), an erasable programmable read-only memory (EPROM or Flashmemory), an optical fiber, a portable compact disc read-only memory(CD-ROM), an optical storage device, a transmission media such as thosesupporting the Internet or an intranet, or a magnetic storage device.Note that the computer-usable or computer-readable medium could even bepaper or another suitable medium upon which the program is printed, asthe program can be electronically captured, via, for instance, opticalscanning of the paper or other medium, then compiled, interpreted, orotherwise processed in a suitable manner, if necessary, and then storedin a computer memory. In the context of this document, a computer-usableor computer-readable medium may be any medium that can contain, store,communicate, propagate, or transport the program for use by or inconnection with the instruction execution system, apparatus, or device.The computer-usable medium may include a propagated data signal with thecomputer-usable program code embodied therewith, either in baseband oras part of a carrier wave. The computer usable program code may betransmitted using any appropriate medium, including but not limited towireless, wireline, optical fiber cable, RF, etc.

Computer program code for carrying out operations of the presentembodiments may be written in any combination of one or more programminglanguages, including an object oriented programming language such asJava, Smalltalk, C++ or the like and conventional procedural programminglanguages, such as the “C” programming language or similar programminglanguages. The program code may execute entirely on the user's computer,partly on the user's computer, as a stand-alone software package, partlyon the user's computer and partly on a remote computer or entirely onthe remote computer or server.

The present embodiments are described below with reference to flowchartillustrations and/or block diagrams of methods, apparatus (systems) andcomputer program products. It will be understood that each block of theflowchart illustrations and/or block diagrams, and combinations ofblocks in the flowchart illustrations and/or block diagrams, can beimplemented by computer program instructions. These computer programinstructions may be provided to a processor of a general purposecomputer, special purpose computer, or other programmable dataprocessing apparatus to produce a machine, such that the instructions,which execute via the processor of the computer or other programmabledata processing apparatus, create means for implementing thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

These computer program instructions may also be stored in acomputer-readable medium that can direct a computer or otherprogrammable data processing apparatus to function in a particularmanner, such that the instructions stored in the computer-readablemedium produce an article of manufacture including instruction meanswhich implement the function/act specified in the flowchart and/or blockdiagram block or blocks.

The computer program instructions may also be loaded onto a computer orother programmable data processing apparatus to cause a series ofoperational steps to be performed on the computer or other programmableapparatus to produce a computer implemented process such that theinstructions which execute on the computer or other programmableapparatus provide processes for implementing the functions/actsspecified in the flowchart and/or block diagram block or blocks.

The foregoing detailed description of the embodiments is used to furtherclearly describe the features and spirit of the present embodiments. Theforegoing description for each embodiment is not intended to limit thescope of the present embodiments. All kinds of modifications made to theforegoing embodiments and equivalent arrangements should fall within theprotected scope of the present embodiments. Hence, the scope of thepresent embodiments should be explained most widely according to theclaims described thereafter in connection with the detailed description,and should cover all the possibly equivalent variations and equivalentarrangements.

What is claimed is:
 1. An apparatus comprising: a first socketconfigured to receive a plug, the first socket having a first power endand a first ground end, and the first socket disposed at a base; a firstAND gate having a first input end and a second input end, and the firstinput end is electrically connected to a first output end of a firstinverter; a first switch positioned proximal to the first power end, thefirst switch having a first end and a second end, the first end iselectrically connected to a third input end of the first inverter, thefirst end and the third input end are together electrically connected toa preset power, and the second end is grounded; a second switchpositioned proximal to the first ground end, the second switch having athird end and a fourth end, the third end is electrically connected tothe second input end, the third end and the second input end aretogether electrically connected to the preset power, and the fourth endis grounded; and a second output end of the first AND gate to output analarm signal responsive to the first switch being short when the plug iselectrically connected to the first power end and the second switchbeing open when the plug is electrically disconnected from the firstground end.
 2. The apparatus of claim 1, further comprising: a secondsocket configured to receive the plug, the second socket disposed at thebase and the second socket having a second power end and a second groundend; a second AND gate having a fourth input end and a fifth input end,and the fifth input end is electrically connected to a third output endof a second inverter; a third switch positioned proximal to the secondpower end, the third switch having a fifth end and a sixth end, thefifth end is electrically connected to a sixth input end of the secondinverter, the fifth end and the sixth input end are togetherelectrically connected to the preset power, and the sixth end isgrounded; a fourth switch positioned proximal to the second ground end,the fourth switch having a seventh end and an eighth end, the seventhend is electrically connected to the fifth input end, the seventh endand the fifth input end are together electrically connected to thepreset power, and the eighth end is grounded; and a fourth output end ofthe second AND gate to output the alarm signal responsive to the thirdswitch being short when the plug is electrically connected to the secondpower end of the second socket and the second switch being open when theplug is electrically disconnected from the ground end of the socket. 3.The apparatus of claim 2, further comprising: an OR gate having aseventh input end, an eighth input end, and a fifth output end, thesecond output end is electrically connected to the seventh input end andthe fourth output end is electrically connected to the eighth input end,and the fifth output end to output the alarm signal in response to oneof the seventh and eighth input ends receiving the alarm signal.
 4. Theapparatus of claim 3, further comprising: a management unit having aninth input, the ninth input electrically connected to the fifth output,the management unit to perform a predetermined operation in response tothe received alarm signal.
 5. The apparatus of claim 4, wherein thepredetermined operation performed by the management unit is to generatea communication selected from the group consisting of: a visual alarmmessage and an auditory alarm sound.
 6. A computer program product foremploying an alarm signal responsive to electrical communication betweena socket and a plug, the computer program product comprising a computerreadable hardware storage device having program code embodied therewith,the program code executable by a processing unit to: configure a firstsocket to receive the plug having a first power end and a first groundend, the first socket disposed at a base; configure a first AND gatehaving a first input end and a second input end, and the first input endis electrically connected to a first output end of a first inverter;configure a first switch positioned proximal to the first power end, thefirst switch having a first end and a second end, the first end iselectrically connected to a third input end of the first inverter, thefirst end and the third input end are together electrically connected toa preset power, and the second end is grounded; configure a secondswitch positioned proximal to the first ground end, the second switchhaving a third end and a fourth end, the third end is electricallyconnected to the second input end, the third end and the second inputend are together electrically connected to the preset power, and thefourth end is grounded; and output an alarm signal from a second outputend of the first AND gate responsive to the first switch being shortwhen the plug is electrically connected to the first power end and thesecond switch being open when the plug is electrically disconnected fromthe first ground end.
 7. The computer program product claim 6, furthercomprising program code to: configure a second socket having a secondpower end and a second ground end, the second socket disposed at thebase; configure a second AND gate having a fourth input end and a fifthinput end, and the fifth input end is electrically connected to a thirdoutput end of a second inverter; configure a third switch positionedproximal to the second power end, the third switch having a fifth endand a sixth end, the fifth end is electrically connected to a sixthinput end of the second inverter, the fifth end and the sixth input endare together electrically connected to the preset power, and the sixthend is grounded; configure a fourth switch positioned proximal to thesecond ground end, the fourth switch having a seventh end and an eighthend, the seventh end is electrically connected to the fifth input end,the seventh end and the fifth input end are together electricallyconnected to the preset power, and the eighth end is grounded; andoutput the alarm signal from a fourth output end of the second AND gateresponsive to the third switch being short when the plug is electricallyconnected to the second power end of the second socket and the secondswitch being open when the plug is electrically disconnected from theground end of the socket.
 8. The computer program product of claim 7,further comprising program code to: configure an OR gate having aseventh input end, an eighth input end, and a fifth output end, thesecond output end is electrically connected to the seventh input end andthe fourth output end is electrically connected to the eighth input end;and output the alarm signal from the fifth output end in response to oneof the seventh and eighth input ends receiving the alarm signal.
 9. Thecomputer program product of claim 8, further comprising program code to:perform a predetermined operation in response to the received alarmsignal from the fifth output end.
 10. The computer program product ofclaim 9, wherein the predetermined operation performed is to generate acommunication selected from the group consisting of: a visual alarmmessage and an auditory alarm sound.
 11. A method comprising:configuring a first socket to receive a plug having a first power endand a first ground end, the first socket disposed at a base; configuringa first AND gate having a first input end and a second input end, andthe first input end is electrically connected to a first output end of afirst inverter; configuring a first switch positioned proximal to thefirst power end, the first switch having a first end and a second end,the first end is electrically connected to a third input end of thefirst inverter, the first end and the third input end are togetherelectrically connected to a preset power, and the second end isgrounded; configuring a second switch positioned proximal to the firstground end, the second switch having a third end and a fourth end, thethird end is electrically connected to the second input end, the thirdend and the second input end are together electrically connected to thepreset power, and the fourth end is grounded; and outputting an alarmsignal from a second output end of the first AND gate responsive to thefirst switch being short when the plug is electrically connected to thefirst power end and the second switch being open when the plug iselectrically disconnected from the first ground end.
 12. The method ofclaim 11, further comprising: configuring a second socket having asecond power end and a second ground end, the second socket disposed atthe base; configuring a second AND gate having a fourth input end and afifth input end, and the fifth input end is electrically connected to athird output end of a second inverter; configuring a third switchpositioned proximal to the second power end, the third switch having afifth end and a sixth end, the fifth end is electrically connected to asixth input end of the second inverter, the fifth end and the sixthinput end are together electrically connected to the preset power, andthe sixth end is grounded; configuring a fourth switch positionedproximal to the second ground end, the fourth switch having a seventhend and an eighth end, the seventh end is electrically connected to thefifth input end, the seventh end and the fifth input end are togetherelectrically connected to the preset power, and the eighth end isgrounded; and outputting the alarm signal from a fourth output end ofthe second AND gate responsive to the third switch being short when theplug is electrically connected to the second power end of the secondsocket and the second switch being open when the plug is electricallydisconnected from the ground end of the socket.
 13. The method of claim12, further comprising: configuring an OR gate having a seventh inputend, an eighth input end, and a fifth output end, the second output endis electrically connected to the seventh input end and the fourth outputend is electrically connected to the eighth input end; and outputtingthe alarm signal from the fifth output end in response to one of theseventh and eighth input ends receiving the alarm signal.
 14. The methodof claim 13, further comprising: performing a predetermined operation inresponse to the received alarm signal from the fifth output end.
 15. Themethod of claim 14, wherein the predetermined operation performed is togenerate a communication selected from the group consisting of: a visualalarm message and an auditory alarm sound.